
import http from './http'

export const getRecordList = (data, callback) =>http.post('/v1/modify_pwd' , data, callback, false)


export const getMenuList = (data, callback) =>http.get('/v1/menulist' , data, callback, false)
export const createMenu = (data, callback) =>http.post('/v1/menulist' , data, callback, false)
export const editMenu = (data, callback) =>http.put('/v1/menulist/' + data.id , data.data, callback, false)
export const deleteMenu = (data, callback) =>http.delete('/v1/menulist' , data, callback, false)


export const getUserList = (data, callback) => http.get('/v1/get_user_list' , data, callback, false)
export const createUser = (data, callback) => http.post('/v1/create_user' , data, callback, false)
export const editUserActive = (data, callback) =>http.put('/v1/user_list_active/' + data.id , data.data, callback, false)


export const getUserMemberShip = (data, callback) => http.get('/v1/user_membership' , data, callback, false)
export const createUserMemberShip = (data, callback) => http.post('/v1/user_membership' , data, callback, false)
export const editUserMemberShip = (data, callback) => http.put('/v1/user_membership/'  + data.id, data.data, callback, false)
export const deleteUserMemberShip = (data, callback) => http.delete('/v1/user_membership' , data, callback, false)


export const getGenerateTask = (data, callback) => http.get('/v1/manage_generate_task' , data, callback, false)

export const getGenerateShare = (data, callback) => http.get('/v1/manage_generate_share' , data, callback, false)

export const manageGenerateShare = (data, callback) => http.post('/v1/manage_generate_share' , data, callback, false)

